package com.easywork.mystery.repository;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.easywork.mystery.entity.Contacts;
import com.easywork.mystery.repository.ContactsRepository;

public interface ContactsRepository extends JpaRepository<Contacts, Serializable> {
	@Query(value = "select c from Contacts c where userId=?2 and fri_account like ?1")
	List<Contacts> findByFriAccount(String account, Long id);
}